import request from '@/utils/request'

export function getAll(params) {
  console.log("this is api ",params)
    return request({
        url: '/po/getList',
        method: 'get',
        params
    })
}

export function deleteById(params) {
  console.log("this is api ",params)
  return request({
    url:'/po/deleteById',
    method: 'get',
    params
  })
}


export function deleteByIds(data) {
  return request({
    url:'/po/deleteBatch',
    method: 'post',
    data
  })
}

export function addPOList(data) {
  return request({
    url:'/po/add',
    method: 'post',
    data
  })
}

export function getSupplierList(data) {
  return request({
    url:'initValue/supplier/list',
    method: 'get',
    data
  })
}
export function getProductList(data) {
  return request({
    url:'/product/list',
    method: 'post',
    data
  })
}
export function poOptions1() {
    return request({
        url: '/po/po?id' + id,
        method: 'get',
    })
}